import { Component } from "react";
import "./css/news_item.css";

class NewsItem extends Component {
  render() {
    return (
      <>
        <div
          className="news_background"
          style={{ backgroundImage: `url('${this.props.img}')` }}
        ></div>
        <div className="news_title">
          <div className="news_title_filter"></div>
          <a href={this.props.link} target="_blank">
            <h3>{this.props.title}</h3>
          </a>
        </div>
      </>
    );
  }
}

export default NewsItem;
